package com.hsc.yalebao.adapter;

import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hsc.yalebao.model.WithdrawResultBaseBean;
import java.util.ArrayList;
import java.util.HashMap;

public class WithdrawRecordListAdapter extends BaseAdapter
{
  String TAG = "WithdrawRecordListAdapter";
  int colorGold = -1;
  int colorGreen = -1;
  int colorRed = 0;
  private Context context;
  int count = 1;
  ViewHolder holder = null;
  private LayoutInflater inflater;
  private ArrayList<WithdrawResultBaseBean> list;
  HashMap<Integer, View> mapView = new HashMap();
  private Resources resources = null;

  public WithdrawRecordListAdapter(Context paramContext, ArrayList<WithdrawResultBaseBean> paramArrayList)
  {
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.list = paramArrayList;
    this.resources = paramContext.getResources();
    this.colorGreen = this.resources.getColor(2131165321);
    this.colorGold = this.resources.getColor(2131165369);
    this.colorRed = this.resources.getColor(2131165214);
  }

  public int getCount()
  {
    if (this.list == null)
      return 0;
    return this.list.size();
  }

  public Object getItem(int paramInt)
  {
    return this.list.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    WithdrawResultBaseBean localWithdrawResultBaseBean;
    if (paramView == null)
    {
      this.holder = new ViewHolder();
      paramView = this.inflater.inflate(2130903185, null);
      this.holder.tv_charge_jine = ((TextView)paramView.findViewById(2131100260));
      this.holder.tv_charge_time = ((TextView)paramView.findViewById(2131100261));
      this.holder.tv_charge_status = ((TextView)paramView.findViewById(2131100262));
      paramView.setTag(this.holder);
      localWithdrawResultBaseBean = (WithdrawResultBaseBean)this.list.get(paramInt);
      if (localWithdrawResultBaseBean != null)
        break label117;
    }
    label117: String str3;
    do
    {
      return paramView;
      this.holder = ((ViewHolder)paramView.getTag());
      break;
      String str1 = localWithdrawResultBaseBean.getDrawmonery();
      String str2 = localWithdrawResultBaseBean.getAdd_time();
      str3 = localWithdrawResultBaseBean.getStatus();
      this.holder.tv_charge_jine.setText(str1);
      this.holder.tv_charge_time.setText(str2.trim().replace(" ", "\n"));
      if ("1".equals(str3))
      {
        this.holder.tv_charge_status.setText("审核中");
        this.holder.tv_charge_status.setTextColor(this.context.getResources().getColor(2131165335));
        return paramView;
      }
      if ("2".equals(str3))
      {
        this.holder.tv_charge_status.setText("已打款");
        this.holder.tv_charge_status.setTextColor(this.colorRed);
        return paramView;
      }
    }
    while (!"3".equals(str3));
    this.holder.tv_charge_status.setText("未通过");
    this.holder.tv_charge_status.setTextColor(this.colorGreen);
    return paramView;
  }

  public void setData(ArrayList<WithdrawResultBaseBean> paramArrayList)
  {
    this.list = paramArrayList;
  }

  public class ViewHolder
  {
    private TextView tv_charge_jine;
    public TextView tv_charge_result;
    private TextView tv_charge_status;
    private TextView tv_charge_time;

    public ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.WithdrawRecordListAdapter
 * JD-Core Version:    0.6.2
 */